package es.efor.ics.gev.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import es.efor.ics.gev.dao.CategoriaAtributoDao;
import es.efor.ics.gev.model.CategoriaAtributo;
import es.efor.ics.gev.service.CategoriaAtributoManager;

/**
 * Implementation of CategoriaAtributoManager interface.
 * 
 * @author dlisbona
 */
public class CategoriaAtributoManagerImpl extends
		GenericManagerImpl<CategoriaAtributo, Long> implements
		CategoriaAtributoManager {
   	
	
	
	private CategoriaAtributoDao categoriaAtributoDao;

	@Autowired
	public void setCategoriaAtributoDao(
			CategoriaAtributoDao categoriaAtributoDao) {
		this.dao = categoriaAtributoDao;
		this.categoriaAtributoDao = categoriaAtributoDao;		
	}

	/**
     * {@inheritDoc}
     */
	public List<CategoriaAtributo> getCategoriasAtributo() {
		return categoriaAtributoDao.getCategoriasAtributo();
	}

	/**
     * {@inheritDoc}
     */
	public void removeCategoria(String categoriaId) {
		categoriaAtributoDao.removeCategoria(new Long(categoriaId));		
	}
	
}
